package com.famous.dagligen.iterator.error;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zhengdalong
 * @version V1.0
 * @date 2019/8/17 3:01 PM
 */

@Slf4j
public class Waitress {


    private PancakeHouseMenu pancakeHouseMenu = new PancakeHouseMenu();
    private DinnerMenu dinnerMenu = new DinnerMenu();

    public void printMenu() {
        for (MenuItem menuItem : pancakeHouseMenu.getMenuItems()) {
            log.info("menuItem:{}", menuItem.toString());
        }
        for (MenuItem menuItem : dinnerMenu.getMenuItems()) {
            log.info("menuItem:{}", menuItem.toString());
        }
    }

    public static void main(String[] args) {
        Waitress waitress = new Waitress();
        waitress.printMenu();
    }
}
